﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop.Resources
{
    public static class StringExtentions
    {
        public static bool ContainsOnlyNumbers(this string givenString)
        {
            bool result = true;
            foreach (var currentChar in givenString)
            {
                if (!Char.IsNumber(currentChar))
                {
                    result = false;
                    break;
                }
            }
            return result;
        }
    }
}
